package com.tanhua.dubbo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tanhua.domain.db.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


public interface UserInfoMapper extends BaseMapper<UserInfo> {

    @Select("SELECT a.* FROM tb_user_info a, tb_black_list b WHERE b.user_id = #{uid} AND a.id = b.black_user_id")
    IPage<UserInfo> findBlackList(Page<UserInfo> page, @Param("uid") Long uid);
}
